﻿namespace DoNet.Common
{
    /// <summary>
    /// 代理
    /// </summary>
    public class ProxySetting
    {
        /// <summary>
        /// 是否使用代理
        /// </summary>
        public bool UseProxy { get; set; }
        /// <summary>
        /// 代理协议
        /// </summary>
        public string Protocol { get; set; }
        /// <summary>
        /// 代理地址
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 端口
        /// </summary>
        public string Port { get; set; }
        /// <summary>
        /// 代理凭据
        /// </summary>
        public ProxyCredentials ProxyCredentials { get; set; }
    }
    /// <summary>
    /// 代理凭据
    /// </summary>
    public class ProxyCredentials
    {
        /// <summary>
        /// 
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Password { get; set; }
    }
}
